/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
 * Description: implement the cast source connect
 * Author: linweidong
 * Create: 2024-08-20
 */

#ifndef CONNECTION_HAP_ABILITY_H
#define CONNECTION_HAP_ABILITY_H

#include <semaphore.h>
#include <mutex>
 
#include "ability_connect_callback_interface.h"
#include "ability_connect_callback_stub.h"
 
namespace OHOS {
namespace CastEngine {
namespace CastEngineService {
class CastAbilityConnection : public OHOS::AAFwk::AbilityConnectionStub {
public:
    void OnAbilityConnectDone(const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject,
        int resultCode) override;
    void OnAbilityDisconnectDone(const AppExecFwk::ElementName &element, int resultCode) override;
};
} // namespace CastEngineService
} // namespace CastEngine
} // namespace OHOS

#endif // CONNECTION_HAP_ABILITY_H